package lianshoo;

import java.util.Scanner;

public class Test7 {
    public static void main(String[] args) {

        Scanner sc =new Scanner(System.in);
        System.out.println("请输入:");
        String s =sc.nextLine();
        String[] mgc={"tmd" ,"Tmd","TMD","sb"};
        String result = s;
        for (int i = 0; i < mgc.length; i++) {
           result=result.replace(mgc[i],"??") ;
        }
     /*   String result = s.replace( "tmd" ,"***");
        result=result.replace("Tmd","***");
        result=result.replace("TMD","***");
        result=result.replace("sb","***");
*/
        System.out.println(result);

    }
}






